package com.adnaan.restaurant.service;

import com.adnaan.restaurant.entity.SysUser;

/**
 * author: adnaan
 * create: 2023-11-22 15:41
 * Description:
 */
public interface ISysUserService {


    /**
     * 通过用户名查询用户
     *
     * @param userName 用户名
     * @return 用户对象信息
     */
    public SysUser selectUserByUserName(String userName);

    /**
     * 注册新用户
     *
     * @param sysUser
     * @return boolean
     */
    public int register(SysUser user);


    public int updateUser(SysUser sysUser);

    int updateAvatar(String url, Long userId);

    public SysUser selectUserByUserId(Long userId);
}